package com.ruoyi.labour.mapper;

import com.ruoyi.labour.domain.LabourSlideshowFiles;
import com.ruoyi.labour.domain.vo.UpdateSlideshowVo;
import com.ruoyi.labour.domain.vo.UploadSlideshowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: SlideshowMapper
 * @Description:
 * @Author: Awen
 * @Date: 2023/5/13 15:08
 */
public interface SlideshowMapper {

    int addSlideshow(UploadSlideshowVo uploadSlideshowVo);

    List<LabourSlideshowFiles> selectSlideshow();

    int updateSlideshow(UpdateSlideshowVo updateSlideshowVo);

    int deleteSlideshow(int id);


    /**
     * 根据ID查询轮播图是否存在
     *
     * @param id
     * @return
     */
    int checkSlideshowIsExistByID(@Param("id") int id);
}
